﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Triad.Framework.MainMenuPage" Codebehind="MainMenu.aspx.cs" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Main Menu</title>
    <meta http-equiv="Window-target" content="_top" />
    <script id="tfcore" src="_fw/Controls/js/tfcore.js" type="text/javascript"></script>
    <script id="tfcore1" src="_fw/Controls/js/jquery.js" type="text/javascript"></script>
    <script id="tfcore2" src="_fw/Controls/js/jquery-ui.js" type="text/javascript"></script>
    <script id="tfcore3" src="_fw/Controls/js/appmain.js" type="text/javascript"></script>
    <script id="tfcore4" src="_fw/Controls/js/appcommon.js" type="text/javascript"></script>
    <script id="tfcore5" src="_fw/Controls/js/tfpopup.js" type="text/javascript"></script>
    <script type="text/javascript">
        if(parent.frames.length>=1){window.top.location.href = "MainMenu.aspx"; }

        function loadUserInfo() {
            _TF.APP.Main.openModalDialog(null, "/_fw/Admin/ASPMembership/EditProfile.aspx", "80%", "80%", false, "User Profile", _TF.APP.Enum.locTypes.CEN, null, null);
        }
       
        function stdResize()
        {  if(_TF.is.ie){
            window.resizeEnd = (window.resizeEnd ==null)?(new Object()):window.resizeEnd;
            clearTimeout(window.resizeEnd);
            window.resizeEnd = setTimeout(_TF.APP.Main.onResizeEnd, 1);
          } else { _TF.APP.Main.onResizeEnd();}     
        }

        function LocalOnLoad() {
            document.title = _TF.PageTitle.innerText;
            _TF.APP.Global.cPage = _gE('ifMainContent');
            if (typeof disablemenu == 'function') { disablemenu(); }
            $(window).resize(stdResize());
            $("#lh-col").mouseover(_TF.APP.Main.ShowMenu);
            $("#lh-col").mouseout( _TF.APP.Main.HideMenu);
            $("#theDockPanelImage").click(_TF.APP.Main.pinTheMenu);
            setTimeout(_TF.APP.Main.onResizeEnd, 2);
            _TF.Session.RegisterTimeout(58); // Initial session timeout = 58 minutes.  Set server (IIS) to 60 minute session timeout.
            // used for F1 help
            $('#btnHelp').cluetip({ sticky: true, height: '500px', width: '600px', activation: 'click', ajaxCache: false, cluetipClass: 'jtip',
                dropShadow: true, arrows: false, closePosition: 'title', closeText: '<img src="_fw/images/close.gif" alt="close" />', positionBy: 'fixed',
                leftOffset: '-680px'
            });
        }

        //This line creates the Accordian Menu (jQuery)
        $(function() { $('#wb').accordion({ fillSpace: false, autoHeight: false, clearStyle: true, header: ".mhead" }); });        
    </script>
</head>
<body class="mainBody" >
    <form id="FormMain" runat="server">
<!-- Header -->
<div id="maintitle">
        <div style="position:absolute;left:0px;top:0px;">
            <a href="/MainMenu.aspx" target="_top" style="border:0;"><img src="/_fw/images/Logo_Main.jpg" alt="Home Page" style="border:0;" /></a>
        </div>
        <div style="position:absolute;text-align:center;left: 250px;top:15px;"> 
             <asp:LinkButton ID="lnkBtnTitle" runat="server" Font-Bold="True" Font-Size="X-Large" ForeColor="White">App Main</asp:LinkButton><br />
        </div>
        
        <div style="position:absolute;right:20px;text-align:right;vertical-align:top;">
            <asp:Label ID="lblUser" runat="server" Font-Bold="True" Text="User:"></asp:Label>
            <a id="btnUser" href="javascript:loadUserInfo();" title="User Profile" style="color: yellow"><asp:LoginName ID="LogOnName1" runat="server" meta:resourcekey="LogOnName1Resource1" /></a>
            <br />        
            <a id="btnHelp" href="#" rel="/MainMenu_Hlp.htm" title="Application Help" style="color:White" >Help (F1)</a>
            <asp:LoginStatus ID="LoginStatus1" runat="server" />
            <!--<a id="btnLogout" href="#" style="color:White" >Logout</a>-->
            <br /><asp:label ID="lstPub" runat="server" style="font-size:x-small" ForeColor="White"></asp:label>
        </div>
</div>
<!-- end of header -->
<!-- left column -->
<div id="lh-col">
<table id="MenuTable">
			<tr>
    			<td id="theMainMenuTitle" class="mainMenuText" >App Menu</td>
				<td id="Mainbg" width="15px">
					<img id="theDockPanelImage" src="/_fw/images/pinned.gif" alt="Pin/UnPin the menu" />
				</td>
			</tr>
			<tr>
			    <td colspan="2">
                    <asp:Panel ID="wb" runat="server">
                    </asp:Panel>
			    </td>
			</tr>
			</table>
</div>
<!-- end of left column -->
<!-- right column -->

<div id="rh-col">
  <iframe enableviewstate="false" runat="server" id="ifMainContent" name="ifMainContent" src="about:blank" width="100%" height="670px" scrolling="auto" frameborder="0"></iframe>
</div>
<!-- end of right column -->    
<img id="keepMeAlive" src="/_fw/images/1x1.GIF" alt="" />
<div id="ModalDialogs"></div>            
</form>
</body>
</html>
